package cn.com.dycc.sys_manage.deptsysmanagement.entity;

import java.io.Serializable;

public class DeptInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7100733495311941027L;
	
	private String dept_no;			//单位序号
	private String dept_name;		//单位名称
	
	public DeptInfo(){}

	public DeptInfo(String dept_no, String dept_name) {
		super();
		this.dept_no = dept_no;
		this.dept_name = dept_name;
	}

	public String getDept_no() {
		return dept_no;
	}

	public void setDept_no(String dept_no) {
		this.dept_no = dept_no;
	}

	public String getDept_name() {
		return dept_name;
	}

	public void setDept_name(String dept_name) {
		this.dept_name = dept_name;
	}

	@Override
	public String toString() {
		return "DeptInfo [dept_no=" + dept_no + ", dept_name=" + dept_name + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dept_no == null) ? 0 : dept_no.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeptInfo other = (DeptInfo) obj;
		if (dept_no == null) {
			if (other.dept_no != null)
				return false;
		} else if (!dept_no.equals(other.dept_no))
			return false;
		return true;
	}
	
	

}
